extends Node

var monsterCards: Array
var playerCards: Array

var isFightting = false;

func initMonsterData():
	var langYao = LangYao.CreateCard()
	monsterCards.append(langYao)

	var monsterGroup = get_node("/root/Scene/monster_group")
	monsterGroup.addCard(langYao, 3)
	

func initData():
	initMonsterData()
	pass

func _ready() -> void:
	initData()


func _process(delta: float) -> void:
	if isFightting:
		for i in playerCards:
			if i.data.canAttack.call():
				i.data.onAttack.call(monsterCards)
				
		for i in monsterCards:
			if i.data.canAttack.call():
				i.data.onAttack.call(playerCards)
	
	
	
